﻿using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;

namespace SZ.Mech
{
    public class CompProperties_AddMechHediff : CompProperties
    {
        public CompProperties_AddMechHediff()
        {
            this.compClass = typeof(CompAddMechHediff);
        }
    }
    public class CompAddMechHediff : ThingComp
    {
        public override void PostSpawnSetup(bool respawningAfterLoad)
        {
            //DamageDefOf.Stab

            base.PostSpawnSetup(respawningAfterLoad);
            Pawn pawn = (parent as Pawn);
            pawn.health.AddHediff(HediffDefOf.Mech_Hediff);
        }
    }

}
